const CountStream = require('./countstrram')
const countStream = new CountStream('book')
const http = require('http')

http.get('http://www.manning.com', function (res) {
	res.pipe(countStream)
})

countStream.on('total', function (count) {
	console.log('Total match', count)
})
